golang.org/x/mod/modfile.FileSyntax.addLine (method)
14 uses
golang.org/x/mod/modfile (current package)
read.go#L105: func (x *FileSyntax) addLine(hint Expr, tokens ...string) *Line {
rule.go#L213: Syntax: f.Syntax.addLine(nil, "module", AutoQuote(path)),
rule.go#L1080: Syntax: f.Syntax.addLine(hint, "go", version),
rule.go#L1118: Syntax: f.Syntax.addLine(hint, "toolchain", name),
rule.go#L1157: line := f.Syntax.addLine(nil, "godebug", key+"="+value)
rule.go#L1196: line := f.Syntax.addLine(nil, "require", AutoQuote(path), vers)
rule.go#L1557: f.Exclude = append(f.Exclude, &Exclude{Mod: module.Version{Path: path, Version: vers}, Syntax: f.Syntax.addLine(hint, "exclude", AutoQuote(path), vers)})
rule.go#L1607: *replace = append(*replace, &Replace{Old: old, New: new, Syntax: syntax.addLine(hint, tokens...)})
rule.go#L1640: r.Syntax = f.Syntax.addLine(nil, "retract", AutoQuote(vi.Low))
rule.go#L1642: r.Syntax = f.Syntax.addLine(nil, "retract", "[", AutoQuote(vi.Low), ",", AutoQuote(vi.High), "]")
rule.go#L1674: Syntax: f.Syntax.addLine(nil, "tool", path),
rule.go#L1704: Syntax: f.Syntax.addLine(nil, "ignore", path),
work.go#L218: line := f.Syntax.addLine(nil, "godebug", key+"="+value)
work.go#L259: line := f.Syntax.addLine(nil, "use", AutoQuote(diskPath))